/**
 * $Id: CommonMsgBean.java,v 1.8 2006/11/13 04:01:45 martin Exp $
 *
 * Copyright 2006 Skyinfo, Inc. All Rights Reserved.
 */
package com.haoxi.gateway.common;

import com.haoxi.gateway.cmppmsg.CMPPSubmitMessage;



/**
 * TODO
 * 
 * Revision History
 * 
 * 2006-5-26,star.Zhao,created it
 */
public class CommonMsgBean {
    private String gateWayCode;

    private String connName;

    private byte[] body;

    private Object reserve;

    private boolean isNeedSendResp;
    private int commid;
    
    private CMPPSubmitMessage submitMsg=null;

    /**
     * @return Returns the body.
     */
    public byte[] getBody() {
        return body;
    }

    /**
     * @param body The body to set.
     */
    public void setBody(byte[] body) {
        this.body = body;
    }

    /**
     * @return Returns the gateWayCode.
     */
    public String getGateWayCode() {
        return gateWayCode;
    }

    /**
     * @param gateWayCode The gateWayCode to set.
     */
    public void setGateWayCode(String gateWayCode) {
        this.gateWayCode = gateWayCode;
    }

    /**
     * @return Returns the reserve.
     */
    public Object getReserve() {
        return reserve;
    }

    /**
     * @param reserve The reserve to set.
     */
    public void setReserve(Object reserve) {
        this.reserve = reserve;
    }

    /**
     * @return Returns the connName.
     */
    public String getConnName() {
        return connName;
    }

    /**
     * @param connName The connName to set.
     */
    public void setConnName(String connName) {
        this.connName = connName;
    }

    /**
     * @return Returns the isNeedSendResp.
     */
    public boolean isNeedSendResp() {
        return isNeedSendResp;
    }

    /**
     * @param isNeedSendResp The isNeedSendResp to set.
     */
    public void setNeedSendResp(boolean isNeedSendResp) {
        this.isNeedSendResp = isNeedSendResp;
    }

    public int getCommid() {
        return commid;
    }

    public void setCommid(int commid) {
        this.commid = commid;
    }
    
    public CMPPSubmitMessage getsSubmitMsg()
    {
        return submitMsg;
    }
    
    public void setSubmitMsg(CMPPSubmitMessage submitMsg)
    {
        this.submitMsg=submitMsg;
    }
    public String toString() {
        String tmpStr=new StringBuffer("CommonMsgBean: ")
                .append("gateWayCode=").append(gateWayCode)
                .append(",reserve=").append(reserve)
                .append(",isNeedSendResp=").append(isNeedSendResp).toString();
        return tmpStr;
    }

}
